home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / test / suplib / addtail.c < prev    next >
C/C++ Source or Header  |  1992-10-25  |  231b  |  13 lines

  1.  
  2. #include <suplib/lists.h>
  3.  
  4. void
  5. AddHead(struct List *list, struct Node *node)
  6. {
  7.     node->ln_Succ = list->lh_Head;
  8.     node->ln_Pred = (struct Node *)&list->lh_Head;
  9.     list->lh_Head->ln_Pred = node;
  10.     list->lh_Head = node;
  11. }
  12.  
  13.